package org.jeecg.basic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 错误代码配置(MesErrcodeCfg)实体类
 *
 * @author liting
 * @since 2024-09-23 19:04:30
 */
@Data
@TableName("mes_errcode_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_errcode_cfg对象", description = "错误代码配置")
public class MesErrcodeCfg implements Serializable {
    private static final long serialVersionUID = -51594753296206522L;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
    /**
     * 产线或产线组
     */
    @Excel(name = "产线", width = 15)
    @ApiModelProperty(value = "产线")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @MppMultiId
    private String line;
    /**
     * 工站
     */
    @Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    @MppMultiId
    private String op;
    /**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    @MppMultiId
    private String stn;
    /**
     * 错误代码
     */
    @Excel(name = "错误代码", width = 15)
    @ApiModelProperty(value = "错误代码")
    @MppMultiId
    private String name;
    /**
     * 错误描述
     */
    @Excel(name = "错误描述", width = 15)
    @ApiModelProperty(value = "错误描述")
    private String des;
    /**
     * 错误类型
     */
    @Excel(name = "错误类型", width = 15)
    @ApiModelProperty(value = "错误类型")
    @Dict(dicCode = "error_type")
    private String type;
    /**
     * 错误等级
     */
    @Excel(name = "错误等级", width = 15)
    @ApiModelProperty(value = "错误等级")
    @Dict(dicCode = "level_type")
    private Integer level;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

}

